package com.black.system.domain.req.system.edit;

import com.black.system.domain.req.system.add.SysMenuAddReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@ApiModel(value = "菜单修改请求模型")
@Getter
@Setter
public class SysMenuEditReq extends SysMenuAddReq {

    @ApiModelProperty(value = "菜单主键", required = true)
    @NotNull(message = "{id.not.null}")
    private Long menuId;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "路由参数")
    private String query;

    @ApiModelProperty(value = "权限字符")
    private String perms;

    @ApiModelProperty(value = "是否缓存（0缓存 1不缓存）")
    private String isCache;

}
